#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
int main()
{
    while(1)
    {
        printf("PID:%d\n",getpid());
        sleep(1);
    }

    /*
    int id = fork();
    if(id==0)
    {
        //child
        while(1)
        {
            printf("i an is child ,my PID:%d,my PPID:%d\n",getpid(),getppid());
            sleep(2);
        }
    }
    else if(id>0)
    {
        //parent
        while(1)
        {
            printf("i am is parent ,my PID:%d,my PPID:%d\n",getpid(),getppid());
			sleep(1);
        }
    }
    printf("Hello world!\n");
    printf("Hello world!\n");
    printf("Hello world!\n");
    printf("Hello world!\n");
    printf("Hello world!\n");
    printf("Hello world!\n");
    printf("Hello world!\n");
    printf("Hello world!\n");
    */
    return 0;


}
